﻿using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using System.Web.Http;
using System.Web.Http.Results;
using System.Windows.Forms;
using log4net;
using MySql.Data.MySqlClient;
using Newtonsoft.Json;
using Org.BouncyCastle.Asn1.X500;
using static CloudApiServer.Controllers.DemoController;
using static log4net.Appender.RollingFileAppender;

namespace CloudApiServer.Controllers
{
    /// <summary>
    /// 甘肃初始化动态库接口控制器，只是用来监控
    /// </summary>
    [RoutePrefix("hsa-hgs-adapt/api/card")]
    public class FsiApiGanSuInitDllController : ApiController
    {
        /// <summary>
        /// 初始化动态库
        /// </summary>
        /// <returns></returns>
        [Route("initDll")]
        [HttpPost]
        public IHttpActionResult initDll(HttpRequestMessage request)
        {
            Console.WriteLine(request.Content.ReadAsStringAsync().Result);
            var FsiHeader = new FsiHeader<outputsignInOut>
            {
                infcode = 0,
            };
            return Json(FsiHeader);
        }
    }
}
